package org.pro.core.social.qq.config;

import org.springframework.social.security.SocialAuthenticationFilter;
import org.springframework.social.security.SpringSocialConfigurer;
/**
 * 处理拦截路径
 * @author luoqiz
 *
 */
public class QQSpringSocialConfigurer extends SpringSocialConfigurer {

	private String filterProcessesUrl;
	public QQSpringSocialConfigurer(String filterProcessesUrl){
		this.filterProcessesUrl=filterProcessesUrl;
	}
	@SuppressWarnings("unchecked")
	@Override
	protected <T> T postProcess(T object) {
		SocialAuthenticationFilter filter = (SocialAuthenticationFilter)super.postProcess(object);
		filter.setFilterProcessesUrl(filterProcessesUrl);
		return (T)filter;
	}
}
